package com.neu.af.dataFilter.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.neu.af.common.base.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

public class AbData implements BaseEntity<String> {
    String id;
    String tag_name;
    String descriptor;
    int alarm_class;
    String data;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Timestamp create_time;
    int type;
    String threshold;

    @Override
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTag_name() {
        return tag_name;
    }

    public void setTag_name(String tag_name) {
        this.tag_name = tag_name;
    }

    public String getDescriptor() {
        return descriptor;
    }

    public void setDescriptor(String descriptor) {
        this.descriptor = descriptor;
    }

    public int getAlarm_class() {
        return alarm_class;
    }

    public void setAlarm_class(int alarm_class) {
        this.alarm_class = alarm_class;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public Timestamp getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Timestamp create_time) {
        this.create_time = create_time;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getThreshold() {
        return threshold;
    }

    public void setThreshold(String threshold) {
        this.threshold = threshold;
    }

    @Override
    public String toString() {
        return "AbData{" +
                "id='" + id + '\'' +
                ", tag_name='" + tag_name + '\'' +
                ", descriptor='" + descriptor + '\'' +
                ", alarm_class=" + alarm_class +
                ", data='" + data + '\'' +
                ", create_time=" + create_time +
                ", type=" + type +
                ", threshold='" + threshold + '\'' +
                '}';
    }
}
